package com.chuangke.mds.service;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.chuangke.common.db.page.CkPageQuery;
import com.chuangke.mds.entity.KnowledgeModel;
import com.chuangke.mds.entity.KnowledgeModelProperty;

public interface KnowledgeModelService {

    /**
     * 保存
     * @param knowledgeModel
     */
    void save(KnowledgeModel knowledgeModel);

    /**
     * 删除
     * @param idList
     */
    void delete(List<String> idList);

    /**
     * 加载
     * @param id
     * @return
     */
    KnowledgeModel load(String id);

    /**
     * 根据模版查询模版属性
     * @param modelId
     * @return
     */
    List<KnowledgeModelProperty> findModelPropertyList(String modelId);

    /**
     * 分页查询
     * @param page
     * @return
     */
    IPage<KnowledgeModel> page(CkPageQuery page);
}
